package com.xxl.job.executor.service.jobhandler.liunian;

import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.context.XxlJobHelper;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @ClassName blogJob
 * @Author 半卷流年
 * @Date 2020/11/26 17:04
 */
@Component
@Slf4j
public class BlogJob {

    @XxlJob("testXxlJob")
    public ReturnT<String> testXxlJob() {
        log.info("hello,world!");
        ReturnT<String> success = ReturnT.SUCCESS;
        success.setMsg("执行成功");
        return success;
    }

}
